﻿@functions {
    bool IsCurrentPage(string action)
    {
        return ViewContext.RequestContext.RouteData.Values["action"].ToString().ToLower() == action.ToLower();
    }
}
<ul class="menu clearfix">
    <li class ='@(IsCurrentPage("Index") ? "current" : "")'><a href="@Url.ModuleUrl().Action("Index")">@("Meal Today".Label())</a></li>
    <li class ='@(IsCurrentPage("Records") ? "current" : "")'><a href="@Url.ModuleUrl().Action("Records")">@("My Records".Label())</a></li>
    <li class ='@(IsCurrentPage("Statistics") ? "current" : "")'><a href="@Url.ModuleUrl().Action("Statistics")">@("Full statistics".Label())</a></li>
</ul>
